var t = require;
var e = module;
var o = exports;
Object.defineProperty(o, "__esModule", {
    value: !0
}),
o.RedPointControl = void 0;
var i = t("GlobalUserData"),
n = t("Global"),
a = function() {
    function t() {
        this.pointData = new Map
    }
    return t.getInstance = function() {
        return t._instance || (t._instance = new t),
        t._instance
    },
    t.prototype.isShow = function(t) {
        return this.pointData.get(t)
    },
    t.prototype.setPointData = function(t, e) {
        this.pointData.set(t, e)
    },
    t.prototype.cal = function(t) {
        switch (t) {
            case n.RedPointCalKey.DailyTask:
                this.setPointData(n.RedPointKey.DailyTaskLotter, i.default.getDaliyTaskRedPointState(n.RedPointKey[n.RedPointKey.DailyTaskLotter])),
            this.setPointData(n.RedPointKey.DailyTaskVictory, i.default.getDaliyTaskRedPointState(n.RedPointKey[n.RedPointKey.DailyTaskVictory])),
            this.setPointData(n.RedPointKey.DailyTaskComponent, i.default.getDaliyTaskRedPointState(n.RedPointKey[n.RedPointKey.DailyTaskComponent])),
            this.setPointData(n.RedPointKey.DailyTaskBoxBonus, i.default.getDaliyTaskRedPointState(n.RedPointKey[n.RedPointKey.DailyTaskBoxBonus]));
            break;
            case n.RedPointCalKey.ExploreTask:
                this.setPointData(n.RedPointKey.ExploreTask, i.default.getExploreTaskRedPointState());
            break;
            case n.RedPointCalKey.Signin:
                this.setPointData(n.RedPointKey.Signin, i.default.getSignInRedPointState());
            break;
            case n.RedPointCalKey.Lottery:
                this.setPointData(n.RedPointKey.Lottery, i.default.getLotteryRedPointState());
            break;
            case n.RedPointCalKey.Depot:
                this.setPointData(n.RedPointKey.DepotAM, i.default.getDepotRedPointState(n.RedPointKey[n.RedPointKey.DepotAM])),
            this.setPointData(n.RedPointKey.DepotPM, i.default.getDepotRedPointState(n.RedPointKey[n.RedPointKey.DepotPM])),
            this.setPointData(n.RedPointKey.DepotEV, i.default.getDepotRedPointState(n.RedPointKey[n.RedPointKey.DepotEV]));
            break;
            case n.RedPointCalKey.Daily:
                console.log("日常任务"),
            this.setPointData(n.RedPointKey.Daily, i.default.getDailyRedPointState(n.RedPointKey[n.RedPointKey.Daily]));
        }
    },
    t
} ();
o.RedPointControl = a